package com.etc.service;

import java.util.List;

import com.etc.entity.Comment;
import com.etc.util.PageData;

public interface CommentService {

	boolean deleteByPrimaryKey(Integer comid);

	boolean insert(Comment record);

	boolean insertSelective(Comment record);

	Comment selectByPrimaryKey(Integer comid);

	boolean updateByPrimaryKeySelective(Comment record);

	boolean updateByPrimaryKey(Comment record);

	PageData<Comment> selectByPage(int page, int limit, String content);

	// 根据景点id查所属评论
	List<Comment> selectByTraid(int traid);
	
	int selectCountByTraid(int traid);

}
